function showMessage(strMessage)  {
   var msg = Sizzle('#messages')[0];
   msg.innerHTML = "<p>" + strMessage + "</p>";
   msg.style.display = "block";
   window.setTimeout(function(m) {
      m.style.display = "none";
   }, 3000, msg);
}

function validate()  {
   var v = new jaf.ui.form.FieldValidator();
   v.add("field", {
      validator: "number",
      message: "Invalid number. Should be between 35 and 55",
      constraints: {
         min: 35,
         max: 55
      }
   });
   v.validate();
}